package com.xyxy.platform.modules.entity.trade;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderActionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderActionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andActionIdIsNull() {
            addCriterion("action_id is null");
            return (Criteria) this;
        }

        public Criteria andActionIdIsNotNull() {
            addCriterion("action_id is not null");
            return (Criteria) this;
        }

        public Criteria andActionIdEqualTo(Long value) {
            addCriterion("action_id =", value, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdNotEqualTo(Long value) {
            addCriterion("action_id <>", value, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdGreaterThan(Long value) {
            addCriterion("action_id >", value, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdGreaterThanOrEqualTo(Long value) {
            addCriterion("action_id >=", value, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdLessThan(Long value) {
            addCriterion("action_id <", value, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdLessThanOrEqualTo(Long value) {
            addCriterion("action_id <=", value, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdIn(List<Long> values) {
            addCriterion("action_id in", values, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdNotIn(List<Long> values) {
            addCriterion("action_id not in", values, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdBetween(Long value1, Long value2) {
            addCriterion("action_id between", value1, value2, "actionId");
            return (Criteria) this;
        }

        public Criteria andActionIdNotBetween(Long value1, Long value2) {
            addCriterion("action_id not between", value1, value2, "actionId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andActionUserIsNull() {
            addCriterion("action_user is null");
            return (Criteria) this;
        }

        public Criteria andActionUserIsNotNull() {
            addCriterion("action_user is not null");
            return (Criteria) this;
        }

        public Criteria andActionUserEqualTo(Long value) {
            addCriterion("action_user =", value, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserNotEqualTo(Long value) {
            addCriterion("action_user <>", value, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserGreaterThan(Long value) {
            addCriterion("action_user >", value, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserGreaterThanOrEqualTo(Long value) {
            addCriterion("action_user >=", value, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserLessThan(Long value) {
            addCriterion("action_user <", value, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserLessThanOrEqualTo(Long value) {
            addCriterion("action_user <=", value, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserIn(List<Long> values) {
            addCriterion("action_user in", values, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserNotIn(List<Long> values) {
            addCriterion("action_user not in", values, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserBetween(Long value1, Long value2) {
            addCriterion("action_user between", value1, value2, "actionUser");
            return (Criteria) this;
        }

        public Criteria andActionUserNotBetween(Long value1, Long value2) {
            addCriterion("action_user not between", value1, value2, "actionUser");
            return (Criteria) this;
        }

        public Criteria andOrderStatusIsNull() {
            addCriterion("order_status is null");
            return (Criteria) this;
        }

        public Criteria andOrderStatusIsNotNull() {
            addCriterion("order_status is not null");
            return (Criteria) this;
        }

        public Criteria andOrderStatusEqualTo(Integer value) {
            addCriterion("order_status =", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusNotEqualTo(Integer value) {
            addCriterion("order_status <>", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusGreaterThan(Integer value) {
            addCriterion("order_status >", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_status >=", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusLessThan(Integer value) {
            addCriterion("order_status <", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusLessThanOrEqualTo(Integer value) {
            addCriterion("order_status <=", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusIn(List<Integer> values) {
            addCriterion("order_status in", values, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusNotIn(List<Integer> values) {
            addCriterion("order_status not in", values, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusBetween(Integer value1, Integer value2) {
            addCriterion("order_status between", value1, value2, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("order_status not between", value1, value2, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andActionIpIsNull() {
            addCriterion("action_ip is null");
            return (Criteria) this;
        }

        public Criteria andActionIpIsNotNull() {
            addCriterion("action_ip is not null");
            return (Criteria) this;
        }

        public Criteria andActionIpEqualTo(String value) {
            addCriterion("action_ip =", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpNotEqualTo(String value) {
            addCriterion("action_ip <>", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpGreaterThan(String value) {
            addCriterion("action_ip >", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpGreaterThanOrEqualTo(String value) {
            addCriterion("action_ip >=", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpLessThan(String value) {
            addCriterion("action_ip <", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpLessThanOrEqualTo(String value) {
            addCriterion("action_ip <=", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpLike(String value) {
            addCriterion("action_ip like", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpNotLike(String value) {
            addCriterion("action_ip not like", value, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpIn(List<String> values) {
            addCriterion("action_ip in", values, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpNotIn(List<String> values) {
            addCriterion("action_ip not in", values, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpBetween(String value1, String value2) {
            addCriterion("action_ip between", value1, value2, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionIpNotBetween(String value1, String value2) {
            addCriterion("action_ip not between", value1, value2, "actionIp");
            return (Criteria) this;
        }

        public Criteria andActionNoteIsNull() {
            addCriterion("action_note is null");
            return (Criteria) this;
        }

        public Criteria andActionNoteIsNotNull() {
            addCriterion("action_note is not null");
            return (Criteria) this;
        }

        public Criteria andActionNoteEqualTo(String value) {
            addCriterion("action_note =", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteNotEqualTo(String value) {
            addCriterion("action_note <>", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteGreaterThan(String value) {
            addCriterion("action_note >", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteGreaterThanOrEqualTo(String value) {
            addCriterion("action_note >=", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteLessThan(String value) {
            addCriterion("action_note <", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteLessThanOrEqualTo(String value) {
            addCriterion("action_note <=", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteLike(String value) {
            addCriterion("action_note like", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteNotLike(String value) {
            addCriterion("action_note not like", value, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteIn(List<String> values) {
            addCriterion("action_note in", values, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteNotIn(List<String> values) {
            addCriterion("action_note not in", values, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteBetween(String value1, String value2) {
            addCriterion("action_note between", value1, value2, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionNoteNotBetween(String value1, String value2) {
            addCriterion("action_note not between", value1, value2, "actionNote");
            return (Criteria) this;
        }

        public Criteria andActionTimeIsNull() {
            addCriterion("action_time is null");
            return (Criteria) this;
        }

        public Criteria andActionTimeIsNotNull() {
            addCriterion("action_time is not null");
            return (Criteria) this;
        }

        public Criteria andActionTimeEqualTo(Date value) {
            addCriterion("action_time =", value, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeNotEqualTo(Date value) {
            addCriterion("action_time <>", value, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeGreaterThan(Date value) {
            addCriterion("action_time >", value, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("action_time >=", value, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeLessThan(Date value) {
            addCriterion("action_time <", value, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeLessThanOrEqualTo(Date value) {
            addCriterion("action_time <=", value, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeIn(List<Date> values) {
            addCriterion("action_time in", values, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeNotIn(List<Date> values) {
            addCriterion("action_time not in", values, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeBetween(Date value1, Date value2) {
            addCriterion("action_time between", value1, value2, "actionTime");
            return (Criteria) this;
        }

        public Criteria andActionTimeNotBetween(Date value1, Date value2) {
            addCriterion("action_time not between", value1, value2, "actionTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}